package Spring1;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

@Controller
public class Hello {
    @Bean
    public User user1(){
        User user=new User(1,"张三","123456");
        return user;
    }
    @Bean
    public User user2(){
        User user=new User(2,"李四","654321");
        return user;
    }
}
